export type AboutPagesResponse = {
	gmt_create: string;
};
// #----------- 上: ts类型定义 ----------- 分割线 ----------- 下: JS代码 -----------

import req from '@/api/serverRequest';

export const aboutPagesApi = () => {
	return req<unknown, AboutPagesResponse[]>({
		url: '/home/1',
		method: 'get',
		// data: { a: 1 },
		config: {
			baseURL: process.env.SERVER_API_URL
		}
	});
};

export const aboutSearchApi = () => {
	return req<unknown, string>({
		url: '/home/search?query=hello',
		method: 'get',
		config: {
			baseURL: process.env.SERVER_API_URL
		}
	});
};
